let  obj1={a:1,b:c,c:3};
let  obj2 ={...obj1,b:4,c:5,d:6};

// let  merged={...obj1,...obj2};

console.log(obj2);